<template>
    <svg class="svg-icon" :style="{ width: size, height: size, color: color }" aria-hidden="true">
        <use :xlink:href="`#icon-svg-${icon}`"></use>
    </svg>
</template>

<script setup>
const props = defineProps({
    icon: {
        type: String,
        required: true
    },
    size: {
        type: String,
        default: '24px'
    },
    color: {
        type: String,
        default: 'currentColor'
    }
})
</script>